searchenginetracker: Ignore NULL directories
authorBenjamin Otte <otte@redhat.com>
Sat, 1 Aug 2015 03:49:54 +0000 (05:49 +0200)
committerBenjamin Otte <otte@redhat.com>
Sat, 1 Aug 2015 03:50:20 +0000 (05:50 +0200)
gtk/gtksearchenginetracker.c

index bac7a09afda5a7e7dccef74be61efdede5b7db6a..f284a3ccd350fe5749e98b18b61a88f9493edc52 100644 (file)
@@ -536,6 +536,9 @@ get_indexed_locations (GtkSearchEngineTracker *engine)
   for (i = 0; locations[i] != NULL; i++)
     {
       path = path_from_tracker_dir (locations[i]);
+      if (path == NULL)
+        continue;
+
       location = g_file_new_for_path (path);
       g_ptr_array_add (engine->indexed_locations, location);
     }